<template>
  <div>
  </div>
</template>

<script>
export default {
  rules: {
    socialCreditCode: [
      { required: true, message: '请输入', trigger: 'blur' }
    ]
  },
  // change
  change(v) {
    if (v === '0') {
      this.rules.socialCreditCode = []
      this.$refs[this.refName].clearValidate('socialCreditCode')
    } else {
      this.rules.socialCreditCode = [
        { required: true, message: '请选择', trigger: 'change' }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
</style>

